<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath()%>/js/easyui/themes/metro/easyui.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/validate/validate.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/easyui/easyui.js"></script>
<script type="text/javascript">
	$(function() {
		$("#sform").validate({
			rules : {
				merNo : {
					required : true
				},
				merBanker : {
					required : true
				},
				merBank : {
					required : true
				},
				merBranch : {
					required : false
				},
				merAccount : {
					required : true
				}
			},
			errorPlacement : function(error, element) {
				element.css("border-color", "#1c3e57");
			},
		});
	});
</script>
</head>
<body>
	<div class="easyui-panel" title="编辑面板" style="width: 100%;" data-options="fit:true">
		<form id="sform" action="merchant_saveaccount.html" method="post" enctype="multipart/form-data">
			<table width="90%">
				<tr>
					<td height="30" align="right" width="200"><b></b></td>
					<td width="300"><b>内容</b></td>
					<td><b>说明</b></td>
				</tr>
				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>
				<tr>
					<td height="30" align="right">商户编号 :</td>
					<td><s:property value="merchantBean.merNo" /><input type="hidden" placeholder="商户编号" name="merNo" id="merNo" value="<s:property value="merchantBean.merNo"/>" /></td>
					<td>固定为4位整数作为商编,请严格遵守此规则</td>
				</tr>
				<tr>
					<td height="30" align="right">开户银行 :</td>
					<td><s:select id="merBank" name="merBank" list="@dicts.BankDict@BANK_LIST" value="merchantBean.merBank" /></td>
					<td>开户行名称</td>
				</tr>
				<tr>
					<td height="30" align="right">支行名称 :</td>
					<td><input type="text" placeholder="支行名称" name="merBranch" id="merBranch" value="<s:property value="merchantBean.merBranch"/>"  style="width: 240px;"/></td>
					<td>开户行支行名称</td>
				</tr>
				<tr>
					<td height="30" align="right">开户人姓名 :</td>
					<td><input type="text" placeholder="开户人姓名" name="merBanker" id="merBanker" value="<s:property value="merchantBean.merBanker"/>" /></td>
					<td>开户人姓名</td>
				</tr>
				<tr>
					<td height="30" align="right">账户号 :</td>
					<td><input type="text" placeholder="账户号" name="merAccount" id="merAccount" value="<s:property value="merchantBean.merAccount"/>" style="width: 240px;" /></td>
					<td>一般指银行卡卡号</td>
				</tr>
				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>

				<tr>
					<td height="30" align="right"></td>
					<td><input type="button" class="submit" value="提交单据" onclick="if($('#sform').valid()){$('#sform').submit();}" /> <input type="button" class="submit" value="返回上级" onclick="history.go(-1);" /></td>
					<td></td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>

